package com.feinno.urcs.group.interop;

import com.feinno.database.DataRow;
import com.feinno.database.DataTable;
import com.feinno.urcs.group.interop.entity.DataValidateGroupBaseInfo;
import com.feinno.urcs.group.interop.entity.DataValidateGroupMemberInfo;
import com.feinno.urcs.types.MobileNo;
import com.feinno.util.StringUtils;
import com.google.gson.Gson;
import org.helium.framework.annotations.ServiceInterface;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

/**
 * @author Li.Hongbo <lihongbo@feinno.com>
 */
@ServiceInterface(id = "group:FxDataValidateGrpDao")
public interface FxDataValidateGrpDao {

	public int upDomainConversationIds(String groupDomain, DataValidateGroupBaseInfo groupIndex) throws Exception;

	public DataValidateGroupMemberInfo getGroupSuperAdmin(DataValidateGroupBaseInfo gindex) throws Exception;


	public List<DataValidateGroupMemberInfo> getGroupMembers(DataValidateGroupBaseInfo gindex) throws Exception;
	public int updateGroupMemberIdentity(DataValidateGroupBaseInfo index, MobileNo mobileNo, int identity) throws Exception;
	public int updateGroupMemberIdentityWithUserId(DataValidateGroupBaseInfo index, int userId, int identity) throws Exception;

	public void upGroupMembers(DataValidateGroupBaseInfo gindex, List<DataValidateGroupMemberInfo> members) throws Exception;

	public void getCreator(DataValidateGroupBaseInfo fxGroupIndex) throws Exception;
}
